<?php
/**
 * Created by PhpStorm.
 * User: 64423
 * Date: 2019/4/24
 * Time: 14:22
 */

namespace app\api\home;
use think\Db;

/** 用户
 * Class Collect
 * @package app\api\home
 */
class User extends Common
{
    // 用户信息
    public function info()
    {
        $user_id = input('get.user_id',0);

        $info = Db::name('user')->where('user_id',$user_id)->find();
        $data = [
            'info' => $info
        ];

        return _json(0, '执行成功',$data);
    }

}